package com.houzehui.mncommodity.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.github.pagehelper.PageHelper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author houzehui
 * @since 2022-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Commodity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private String head;

    private Double price;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date datetimes;

    private Integer provinceid;

    private Integer cityid;

    private Integer countyid;

    private String qrcode;

    //扩展字段
    @TableField(exist = false)
    private String cityname;

    @TableField(exist = false)
    private String promotionname;
    @TableField(exist = false)
    private Double price1;
    @TableField(exist = false)
    private Double price2;
    @TableField(exist = false)
    private List<Integer> proidss;

    @TableField(exist = false)
    private String uuid;

}
